package com.example.designpatterns.creational.abstractfactory.factory;

import com.example.designpatterns.creational.abstractfactory.product.Bottle;
import com.example.designpatterns.creational.abstractfactory.product.Cola;
import com.example.designpatterns.creational.abstractfactory.product.PesiCola;
import com.example.designpatterns.creational.abstractfactory.product.PesiColaBottle;

/**
 * 百事可乐主题工厂
 *
 * @author scott
 */
public class PesiColaFactory implements ColaFactory {

    @Override
    public Cola createCola() {
        return new PesiCola();
    }

    @Override
    public Bottle createBottle() {
        return new PesiColaBottle();
    }

}
